package com.rajaev.dtu.tractor.domain.repository.mysql;

import com.rajaev.dtu.tractor.domain.vo.ResourceVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.ResultMap;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@Mapper
public interface ResourceDao {


    List<ResourceVo> selectUserResource(@Param("userId") Integer userId);

    @Select({
            " select * from t_resource where delete_flag ='0' "
    })
    @ResultMap("ResourceMapVo")
    List<ResourceVo> selectAllResource();

}